home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / EModules / graphics / pictures.e < prev    next >
Encoding:
Text File  |  1997-11-30  |  1.9 KB  |  59 lines

  1. /*
  2. **  $VER: pictures.e V0.9B
  3. **
  4. **  Picture Object Definitions.
  5. **
  6. **  (C) Copyright 1996-1997 DreamWorld Productions.
  7. **      All Rights Reserved
  8. */
  9.  
  10. OPT MODULE
  11. OPT EXPORT
  12. OPT PREPROCESS
  13.  
  14. MODULE 'dpkernel/dpkernel','system/register',
  15.        'graphics/blitter','files/files'
  16.  
  17. /****************************************************************************
  18. ** The picture structure for loading and depacking of pictures.
  19. */
  20.  
  21. CONST PICVERSION   = 1,
  22.       TAGS_PICTURE = $FFFB0000 OR ID_PICTURE
  23.  
  24. #define PALETTE (Shl(ID_PALETTE,24) OR Shl(01,16))
  25.  
  26. OBJECT picture
  27.    head[1]    :ARRAY OF head    /* [00] Standard header structure */        
  28.    bitmap     :PTR TO bitmap    /* [12] Bitmap details */
  29.    header     :PTR TO CHAR      /* [16] Information header */
  30.    options    :LONG             /* [20] IMG_VIDEOMEM, IMG_REMAP ... */
  31.    palette    :PTR TO LONG      /* [24] Original palette */
  32.    source     :PTR TO filename  /* [28] Filename for this picture, if any */
  33.    scrmode    :INT              /* [32] Intended screen mode for picture */
  34.    scrheight  :INT              /* [34] Screen height */
  35.    scrwidth   :INT              /* [36] Screen width */
  36. ENDOBJECT
  37.  
  38. /*** Picture Tags ***/
  39.  
  40. CONST PCA_Bitmap     = TAPTR OR 12,
  41.       PCA_Header     = TAPTR OR 16,
  42.       PCA_Options    = TLONG OR 20,
  43.       PCA_Palette    = TAPTR OR 24,
  44.       PCA_Source     = TAPTR OR 28,
  45.       PCA_ScrMode    = TWORD OR 32,
  46.       PCA_ScrHeight  = TWORD OR 34,
  47.       PCA_ScrWidth   = TWORD OR 36,
  48.       PCA_BitmapTags = TSTEPIN OR 12
  49.  
  50. /*** Image Flags ***/
  51.  
  52. CONST IMG_RESIZEX     = $00000001,   /* Allow resize on X axis */
  53.       IMG_            = $00000002,   /* */
  54.       IMG_REMAP       = $00000004,   /* Allow remapping */
  55.       IMG_RESIZEY     = $00000008,   /* Allow resize on Y axis */
  56.       IMG_INITIALISED = $80000000    /* This structure has been initialised */
  57. CONST IMG_RESIZE      = IMG_RESIZEX OR IMG_RESIZEY
  58.  
  59.